package kd.his_alarm_consumer_feign.controller;

import kd.his_alarm_consumer_feign.service.HisAlarmServerFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.bind.DefaultValue;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author：双
 * @time: 2020-02-16 22:05
 * @description:
 * @params: $
 * @return:$
 **/
@RestController
public class HisAlarmServerController {
	@Autowired
	HisAlarmServerFeign hisAlarmServerFeign;
	
	@GetMapping("/hi")
	public String sayHi(@RequestParam(defaultValue = "双",required = false) String name){
		return hisAlarmServerFeign.sayHiHisAlarmServer(name);
	}
}
